﻿using System;

namespace Framework
{
    public class ETEvent : IPoolable
    {
        public int type { get; private set; }
        public object arg { get; private set; }
        
        public object target { get; private set; }

        public void Retain(params object[] args)
        {
            target = args[0];
            type = Convert.ToInt32(args[1]);
            arg = args[2];
        }

        public void Release()
        {
            target = null;
            arg = null;
        }

        public void Dispose()
        {
            target = null;
            arg = null;
        }
    }
}